//
//  SearchLiveController.m
//  JF_New_DYKT
//
//  Created by 陈雷 on 2017/9/6.
//  Copyright © 2017年 陈雷. All rights reserved.
//

#import "SearchLiveController.h"
#import "LiveCell.h"

@interface SearchLiveController ()<UITableViewDelegate,UITableViewDataSource>

@property (nonatomic,strong) UITableView *tbv;

@end

@implementation SearchLiveController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self baseConfig];
}

- (void)baseConfig{
    
    self.title = @"父母大学";
    
    self.tbv = [[UITableView alloc]initWithFrame:CGRectMake(0, 0, KSCreenWidth, KSCreenHeight - 64) style:UITableViewStyleGrouped];
    self.tbv.delegate = self;
    self.tbv.dataSource = self;
    [self.view addSubview:self.tbv];
    self.tbv.separatorColor = [UIColor colorWithHexString:@"eeeeee"];
    self.tbv.separatorInset = UIEdgeInsetsZero;
    self.tbv.backgroundColor = [UIColor colorWithHexString:@"f6f6f6"];
    
    self.tbv.tableFooterView = [UIView new];
    
    [self.tbv registerNib:[UINib nibWithNibName:@"LiveCell" bundle:nil] forCellReuseIdentifier:@"LiveCell"];
}

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
    
    return KSCreenWidth + 64;
}

- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section{
    
    return 10;
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    return 5;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    
    LiveCell *cell = [tableView dequeueReusableCellWithIdentifier:@"LiveCell" forIndexPath:indexPath];
    cell.selectionStyle = UITableViewCellSelectionStyleNone;
    return cell;
    
}

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
    
    
    
}

@end
